package com.lczyfz.istep.common.constants;

/**
 * Created by chenqinhuang on 2017/02/23 16:41.
 * 学习进度常量
 */
public class LearnProgress {
    public static final int unStart = 1;         //未开始
    public static final int oneQuarter = 2;     //25%
    public static final int half = 3;            //50%
    public static final int threeQuarter = 4;   //75%
    public static final int finish = 5;         //已学习

    public static String toString(int status) {
        String learnProgress = "";
        switch (status) {
            case unStart:
                learnProgress = "未开始";
                break;
            case oneQuarter:
                learnProgress = "25%";
                break;
            case half:
                learnProgress = "50%";
                break;
            case threeQuarter:
                learnProgress = "75%";
                break;
            case finish:
                learnProgress = "已学习";
                break;
        }
        return learnProgress;
    }
}
